﻿using DDDNorthWind.Core.Domain.DomainEvents;
using DDDNorthWind.Core.Domain.Events;
using DDDNorthWind.Core.Domain.Events;
using DDDNorthWind.Core.Test.ValueObject;

namespace DDDNorthWind.Core.Test.DomainEvents
{
    public class NewPeopleCreated:IDomainEvent
    {
        public NewPeopleCreated(PeopleId peopleId)
        {
            PeopleId = peopleId;
        }
        public NewPeopleCreated(string id)
        {
            PeopleId = new PeopleId(id);
        }
        public PeopleId PeopleId { get; private set; }
    }
}
